package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.AInfor;
import com.ruoyi.system.service.IAInforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 首页分享类别Controller
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@RestController
@RequestMapping("/xcx/aInfor")
public class XcxAInfor extends BaseController {

    @Autowired
    private IAInforService aInforService;

    /**
     * 查询首页分享类别列表
     */
    @GetMapping("/list")
    public AjaxResult list(AInfor aInfor) {
        aInfor.setIsShow("0");
        return success(aInforService.selectAInforList(aInfor));
    }
}
